/*This is the main design for ee-ut-battleship created by Marko Tiidla and Priit Tiidla*/

body {
	background-color: black;
	margin-top: 5px;
}
#wrap {
	width: 1050px;
	margin-left: auto;
	margin-right: auto;
}
#header {
	height: 91px;
	width: 800px;
	background: #FFDA34;
	display: inline-block;
}
#header div {
	font-family: "Segoe WP";
	font-size: 34px;
	font-variant: small-caps;
	text-align: center;
}
#rightpanel {
	height: 621px;
	width: 240px;
	background: #FFDA34;
	float: right;
	display: inline-block;
}
#login{
	height:90px;
	
}
#loginname{
	margin-left: 45px;
}
#loginsubmit{
}
#rightpanel h2 {
	margin-top: 0px;
	margin-bottom: 0px;
	font-family: "Segoe WP";
	text-align: center;
}
#main {
	margin-top: 10px;
	height: 370px;
	width: 800px;
	background: #007dc5;
	display: inline-block;
	position: relative;
	color: white;
}
#gamecount{
	margin-left: 25px;	
	margin-top:20px;
	font-size: 22px;
}
#gametable{
	margin-top: 10px;
	margin-left: auto;
	margin-right: auto;
	width:240px;
	height: 230px;
	overflow: auto;
	font-size: 18px;
}
#gametable tr {
	border-bottom: 1px white groove;
}
#gametable tr:hover{
	color: black;
	cursor: pointer;
}

#gametable .gametabelselected{
	color: black;
}

/*#rightpanel tr:hover{
	color: white;
	cursor: pointer;
}*/

#historytable tr:HOVER{
	color: white;
	cursor: pointer;
}
#rightpanel.gametabelselected{
	color: white;
}

#player.turn{
	color:yellow;
	-webkit-stroke-width: 5.3px;
      -webkit-stroke-color: #FFFFFF;
      -webkit-fill-color: #FFFFFF;
      text-shadow: 0px 0px 20px white;
      -webkit-transition: width 0.3s; /*Safari & Chrome*/
      transition: width 0.3s;
      -moz-transition: width 0.3s; /* Firefox 4 */
}
#opponent.turn{
	color:yellow;
		-webkit-stroke-width: 5.3px;
      -webkit-stroke-color: #FFFFFF;
      -webkit-fill-color: #FFFFFF;
      text-shadow: 0px 0px 20px white;
      -webkit-transition: width 0.3s; /*Safari & Chrome*/
      transition: width 0.3s;
      -moz-transition: width 0.3s; /* Firefox 4 */
}
#player {

	margin-left: 45px;
	display: inline-block;
	width: 370px;
	margin-bottom: 3px;
	font-family: "Segoe WP";
	color:white;
	font-size:22px;
	font-weight: bold;
}
#opponent {
	height:30px;
	color:white;
	display: inline-block;
	margin-bottom: 3px;
	font-family: "Segoe WP";
	font-size:22px;
	font-weight: bold;
	width: 340px;
	
}
#sound{
	position:relative;
	float: right;
	display: inline-block;
	margin-right:5px;
	background-repeat:no-repeat;
	background-position:bottom;
	width: 30px;
	height: 30px;
}
.soundMuted{
	background-image: url('../images/soundoff.png');
	background-size: 30px, 30px;
}
.soundUnMuted{
	background-image: url('../images/soundon.png');
	background-size: 30px, 30px;
}
#shipbank {
	margin-top: 10px;
	width: 800px;
	height: 140px;
	background: #007dc5;
	display: inline-block;
	color:white;
}
#myBoard {
	padding-right: 5px;
}
#opponentBoard {
	padding-left: 5px;
}

#replayOpponent{
	padding-left: 5px;
}
#replayButton{
	display: inline-block;
	float: right;
	position:relative;
	margin-right: 10px;
	width: 32px;
}

#replayOpponent table {
	height: 330px;
	margin-left: 15px;
	background: transparent;
}
#replayOpponent td{
	background-image: url('../images/opponentboard.png');
	background-size: 100% 100%;
}

#replayOpponent td.hit {
	background-image: url('../images/hit.png');
}
#replayOpponent td.miss {
	opacity: 0.5;
}
#replayOpponent td.sunk {
	background-image: url('../images/sunk.png');
}
#controlButton{
	cursor: pointer;
}
#myBoard table {
	height: 330px;
	margin-left: 45px;
	margin-right: 15px;
	background: transparent;
}
#myBoard td {
	background-size: 100% 100%;
	background-image: url('../images/myboard.png');
}
#opponentBoard table {
	height: 330px;
	margin-left: 15px;
	margin-right: 45px;
	background: transparent;
}
#opponentBoard td {
	background-image: url('../images/opponentboard.png');
	background-size: 100% 100%;
}
#opponentBoard table:hover {
	cursor: crosshair;
}
#opponentBoard td:HOVER {
	background-image: url('../images/onhover.png');
	background-size: 100% 100%;
}

.board {
	vertical-align: middle;
	display: inline-block;
}
table {
	border-collapse: collapse;
}
.board td {
	padding: 1px;
	width: 30px;
	height: 30px;
	border: 1px solid black;
}
address {
	width: 100%;
	margin-left:100px;
	
}
.address {
	color: white;
	text-decoration: none;
}

#rightpanel {
	font-family: "Segoe WP";
}
#rightpanel tr {
	border-bottom: 1px black groove;
}
#highscores {
	height: 469px;
	overflow: auto;
}
#highscores .select{
	color: white;
}
#rightpanel table {
	width: 100%;
}
.number {
	font-size: 22px;
	width: 30px;
	padding-left: 5px;
}
#rightpanel th {
	font-size: 21px;
}
.content {
	text-align: left;
}
.logincontent{
	text-align: center;
	font-size: 20px;
}
.logout{
	text-align: right;
	margin-right: 10px;
	margin-left: 155px;
}
.logout:HOVER{
	cursor: pointer;
	font-weight:bold;
}
.namecontent{
	text-align: left;
	width: 100px;
	word-wrap: break-word;
}
.historycontent{
	width: 80px;
	word-wrap: break-word;
}
#rightpanelheading {
	font-size: 22px;
}
#shiptable {
	margin-left: 40px;
	height:150px;
}
.shipcount {
	font-family: "Segoe WP";
	font-size: 28px;
	color: white;
}
#shiptable td {
	padding-top:5px;
	padding-right: 10px;
	vertical-align: top;
}
#shiptable td.addresstd{
	padding-top:35px;
	vertical-align: top;

}
#ship4vert {
	height: 130px;
}

.ship4vertcss{
	 width:40px;
}
.ship3vertcss{
	width:90px;
}
.ship2vertcss{
	width:120px;
}
.ship1css{
	width:90px;
}
.ship4css{
	width:140px;
}
.ship3css{
	width:110px;
}
#ship3vert, #ship2vert, #ship2vert2, #ship1, #ship13{
	margin-right:5px;
}

.hidden{
	visibility:hidden;
}

#myBoard td.nodrop{
	
	background-image: url('../images/nodrop2.png');
}
.minimized{

	height: 111px;
}
.minimized:hover{

	height: 132px;
}
#opponentBoard td.hit {
	background-image: url('../images/hit.png');
}
#opponentBoard td.miss {
	opacity: 0.5;
}
#opponentBoard td.sunk {
	background-image: url('../images/sunk.png');
}

#myBoard td.hit {
	background-image: url('../images/hit.png');
}
#myBoard td.miss {
	opacity: 0.5;
}
#myBoard td.sunk {
	background-image: url('../images/sunk.png');
}

#myBoard .shipVisible {
	background-image: url('../images/ship1.png');
}